﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YasharEl.Infrastructure.EntityModel
{
    /// <summary>
    /// Helper interface to convert <see cref="IUnitOfWork"/> to various data providers.
    /// </summary>
    public interface IUnitOfWorkConvertor
    {
        /// <summary>
        /// Gets <see cref="IQueryable"/> from given <see cref="IUnitOfWork"/> implementation.
        /// </summary>
        IQueryable<TEntity> ToQueryable<TEntity, TIdentity>(IUnitOfWork unitOfWork) where TEntity : class, IGenericEntity<TIdentity>;
    }
}
